<!doctype html>
<html class="no-js" lang="en">
  <head>
    <title>ToDo Application</title>
  </head>

  <body>
    <div>
      <h1>List One Job by ID</h1>
      {% if messages %}
      <ul>
        {% for message in messages %}
            <li>{{ message }}</li>
        {% endfor %}
      </ul>
      {% endif %}
      <form method="GET" action="{% url 'todo:list_one_job' %}">
        {% csrf_token %}
        <input type="text" placeholder="job id" name="job_id">
        <input type="submit" value="Find">
      </form>
        <p>
         ID: <b><i>{{ job.id }}</b></i>
        </p><p>
         TITLE: <b><i>{{ job.title }}</b></i>
        </p><p>
         DESC: <b><i>{{ job.description }}</b></i>
        </p><p>
         DONE: <b><i>{{ job.done }}</b></i>
        </p><p>
         CREATED: <b><i>{{ job.created_at }}</b></i>
        </p><p>
         UPDATED: <b><i>{{ job.updated_at }}</b></i>
        </p>
        <hr>
    </div>

    <div>

      <form method="GET" action="{% url 'todo:index' %}">
        {% csrf_token %}

        <input type="submit" value="Menu">
      </form>
    </div>
  </body>
</html>
